package com.fanben100.biz;

import com.fanben100.domain.Customer;
import com.fanben100.domain.LoginModel;
import com.fanben100.domain.Operater;
import com.fanben100.domain.Seller;

public class LoginTemplateFactory {

	public static LoginTemplate getLoginTemplate(LoginModel loginModel) {
		if (loginModel instanceof Seller) {
			return new SellerLogin();
		} else if (loginModel instanceof Operater) {
			return new OperaterLogin();
		} else if (loginModel instanceof Customer) {
			return new CustomerLogin();
		}
		return null;
	}
}
